﻿using System.Windows;
using System.Windows.Controls;
using SnakeGame.Models;
using SnakeGame.Helpers;

namespace SnakeGame.Views
{
    /// <summary>
    /// Interaction logic for QuestionFrame.xaml
    /// </summary>
    public partial class QuestionFrame : Frame
    {
        public MyMediaPlayer MediaPlayer { get; set; }
        public QuestionWindow Window { get; set; }
        public Block QuestionItem { get; set; }
        public Question SelectedQuestion { get; set; }
        public int PlayerIndex { get; set; }
        public bool IsWin { get; set; }

        public QuestionFrame()
        {
            InitializeComponent();
        }

        private void QuestionFrame_OnLoaded(object sender, RoutedEventArgs e)
        {
            MediaPlayer = new MyMediaPlayer();
            MediaPlayer.IsRepeating = true;
            QuestionSelection q = new QuestionSelection();
            q.Initialize(this);
            Navigate(q);
        }

    }
}
